<script setup lang="ts">
    import { ref } from 'vue';
  
    import Comment from '@/components/NoticeBox/Content/List/Render/Comment/index.vue';
    import Fans from '@/components/NoticeBox/Content/List/Render/Fans/index.vue';
    
    //属性
    defineProps<{data: any, index: number}>();

    const componentMap = ref({
        1: Comment,
        2: Fans
    });

</script>
<template>
    <component 
        :is="(componentMap as any)[index]"
        :data="data"
        :data-notice-id="data.remind_id"
    />
</template>